package com.yunxin.core.infra.persistence.entity.user;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户登录记录表
 *
 * @author zero°
 * @since   2023-07-18
 */
public class UserLoginRecordDO implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 用户code
     */
    private String userCode;

    /**
     * 登录城市
     */
    private String loginCity;

    /**
     * 登录时间
     */
    private Date loginTime;

    /**
     * 登录渠道推广code
     */
    private String channelPromotionCode;

    /**
     * 登录访问者id
     */
    private String visitorId;

    /**
     * 登录类型 0.注册登录 1.授权登录
     */
    private Integer loginType;

    /**
     * 登录来源 app/h5/wechat/api
     */
    private String loginSource;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getLoginCity() {
        return loginCity;
    }

    public void setLoginCity(String loginCity) {
        this.loginCity = loginCity;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public String getChannelPromotionCode() {
        return channelPromotionCode;
    }

    public void setChannelPromotionCode(String channelPromotionCode) {
        this.channelPromotionCode = channelPromotionCode;
    }

    public String getVisitorId() {
        return visitorId;
    }

    public void setVisitorId(String visitorId) {
        this.visitorId = visitorId;
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }

    public String getLoginSource() {
        return loginSource;
    }

    public void setLoginSource(String loginSource) {
        this.loginSource = loginSource;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}